package com.micangcaihang.micang.entity;

import com.micangcaihang.common.utils.StringUtils;

import java.io.Serializable;

/**
 * <pre>
 *     author : Fandy
 *     e-mail : fandayongfly@gmail.com
 *     time   : 2017/8/8
 *     update : 2017/8/8
 *     desc   : 夫妻信息实体类
 *     version: 1.0
 * </pre>
 */
public class MatesEntity implements Serializable{
    /**
     * customer_id : 1112
     * customer_name : 借款人现任配偶
     * certificate_type : 1
     * certificate_number : 130633198507190014
     * peason_credit : 2
     * peason_crediless : 1
     * peason_enforced : 1
     * mobile_phone : 13699208101
     * customer_sex : 1
     * death_certificate_type : null
     * relationship_type : 1
     * customer_type : 6
     * relationship_id : 1500012388
     */

    private String customer_id;
    private String customer_name;
    private String certificate_type;
    private String certificate_number;
    private String peason_credit;
    private String peason_crediless;
    private String peason_enforced;
    private String mobile_phone;
    private String customer_sex;
    private String death_certificate_type;
    private String relationship_type;
    private String customer_type;
    private String relationship_id;
    private MatesChooseListBean choose_list;

    public MatesEntity(String relationship_type) {
        this.relationship_type = relationship_type;
    }

    public MatesEntity() {
    }

    public MatesChooseListBean getChoose_list() {
        MatesChooseListBean chooseListBean = new MatesChooseListBean();
        if (choose_list == null) {
            setChoose_list(chooseListBean);
        }
        return choose_list;
    }

    public void setChoose_list(MatesChooseListBean choose_list) {
        this.choose_list = choose_list;
    }

    public String getCustomer_id() {
        return StringUtils.isEmpty(customer_id) ? "" : customer_id;
    }

    public void setCustomer_id(String customer_id) {
        this.customer_id = customer_id;
    }

    public String getCustomer_name() {
        return StringUtils.isEmpty(customer_name) ? "" : customer_name;
    }

    public void setCustomer_name(String customer_name) {
        this.customer_name = customer_name;
    }

    public String getCertificate_type() {
        return StringUtils.isEmpty(certificate_type) ? "" : certificate_type;
    }

    public void setCertificate_type(String certificate_type) {
        this.certificate_type = certificate_type;
    }

    public String getCertificate_number() {
        return StringUtils.isEmpty(certificate_number) ? "" : certificate_number;
    }

    public void setCertificate_number(String certificate_number) {
        this.certificate_number = certificate_number;
    }

    public String getPeason_credit() {
        return StringUtils.isEmpty(peason_credit) ? "" : peason_credit;
    }

    public void setPeason_credit(String peason_credit) {
        this.peason_credit = peason_credit;
    }

    public String getPeason_crediless() {
        return StringUtils.isEmpty(peason_crediless) ? "" : peason_crediless;
    }

    public void setPeason_crediless(String peason_crediless) {
        this.peason_crediless = peason_crediless;
    }

    public String getPeason_enforced() {
        return StringUtils.isEmpty(peason_enforced) ? "" : peason_enforced;
    }

    public void setPeason_enforced(String peason_enforced) {
        this.peason_enforced = peason_enforced;
    }

    public String getMobile_phone() {
        return StringUtils.isEmpty(mobile_phone) ? "" : mobile_phone;
    }

    public void setMobile_phone(String mobile_phone) {
        this.mobile_phone = mobile_phone;
    }

    public String getCustomer_sex() {
        return StringUtils.isEmpty(customer_sex) ? "" : customer_sex;
    }

    public void setCustomer_sex(String customer_sex) {
        this.customer_sex = customer_sex;
    }

    public String getDeath_certificate_type() {
        return StringUtils.isEmpty(death_certificate_type) ? "" : death_certificate_type;
    }

    public void setDeath_certificate_type(String death_certificate_type) {
        this.death_certificate_type = death_certificate_type;
    }

    public String getRelationship_type() {
        return StringUtils.isEmpty(relationship_type) ? "" : relationship_type;
    }

    public void setRelationship_type(String relationship_type) {
        this.relationship_type = relationship_type;
    }

    public String getCustomer_type() {
        return StringUtils.isEmpty(customer_type) ? "" : customer_type;
    }

    public void setCustomer_type(String customer_type) {
        this.customer_type = customer_type;
    }

    public String getRelationship_id() {
        return StringUtils.isEmpty(relationship_id) ? "" : relationship_id;
    }

    public void setRelationship_id(String relationship_id) {
        this.relationship_id = relationship_id;
    }

    @Override
    public String toString() {
        return "MatesEntity{" +
                "customer_id='" + customer_id + '\'' +
                ", customer_name='" + customer_name + '\'' +
                ", certificate_type='" + certificate_type + '\'' +
                ", certificate_number='" + certificate_number + '\'' +
                ", peason_credit='" + peason_credit + '\'' +
                ", peason_crediless='" + peason_crediless + '\'' +
                ", peason_enforced='" + peason_enforced + '\'' +
                ", mobile_phone='" + mobile_phone + '\'' +
                ", customer_sex='" + customer_sex + '\'' +
                ", death_certificate_type='" + death_certificate_type + '\'' +
                ", relationship_type='" + relationship_type + '\'' +
                ", customer_type='" + customer_type + '\'' +
                ", relationship_id='" + relationship_id + '\'' +
                '}';
    }
}
